<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">

        <a :href="link">{{text}}</a>

        <br>

        <input type="text" v-model:value="link">
        <input type="text" v-model:value="text">

        <button @mouseover="testEvent()">点击</button>



        <!-- v-model其实就是一个语法糖，是v-bind和input事件的集合 -->
        <!-- <input type="text" v-model:value="link">
        <input type="text" 
        v-bind:value="text"
        v-on:input="text=$event.target.value"> -->

    </div>
</body>
<script src="vue.js"></script>
<script>
    new Vue({
        el:"#app",
        data:{
            link:"http://www.yanhongzhi.com",
            text:"闫老师的博客"
        },
        methods: {
            testEvent(){
                console.log("aaaa");
            }
        },
    });
</script>
</html>